package com.smarttest.portal.mapper;

import com.smarttest.portal.pojo.DbAutoInterfacesummary;
import com.smarttest.portal.pojo.DbAutoInterfacesummaryExample;
import com.smarttest.portal.pojo.DbAutoInterfacesummaryWithBLOBs;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DbAutoInterfacesummaryMapper {
    int countByExample(DbAutoInterfacesummaryExample example);

    int deleteByExample(DbAutoInterfacesummaryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DbAutoInterfacesummaryWithBLOBs record);

    int insertSelective(DbAutoInterfacesummaryWithBLOBs record);

    List<DbAutoInterfacesummaryWithBLOBs> selectByExampleWithBLOBs(DbAutoInterfacesummaryExample example);

    List<DbAutoInterfacesummary> selectByExample(DbAutoInterfacesummaryExample example);

    DbAutoInterfacesummaryWithBLOBs selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DbAutoInterfacesummaryWithBLOBs record, @Param("example") DbAutoInterfacesummaryExample example);

    int updateByExampleWithBLOBs(@Param("record") DbAutoInterfacesummaryWithBLOBs record, @Param("example") DbAutoInterfacesummaryExample example);

    int updateByExample(@Param("record") DbAutoInterfacesummary record, @Param("example") DbAutoInterfacesummaryExample example);

    int updateByPrimaryKeySelective(DbAutoInterfacesummaryWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(DbAutoInterfacesummaryWithBLOBs record);

    int updateByPrimaryKey(DbAutoInterfacesummary record);
    
    List<DbAutoInterfacesummary> selectByModules(List<Integer> modules);
    
    List<DbAutoInterfacesummaryWithBLOBs> selectBySearch(@Param("enroid") int env,@Param("moduleList") List<Integer> modules, @Param("idsList") List<Integer> ids,@Param("importantsList") List<Integer> importants,@Param("ownersList") List<String> owners);
    List<DbAutoInterfacesummaryWithBLOBs> selectByConcat(String ename,@Param("moduleList") List<String> modules,@Param("interfacelist") List<String> interfaces,@Param("importantsList") List<String> importants,@Param("ownersList") List<String> owners);
    int insertAndGetId(DbAutoInterfacesummaryWithBLOBs record);
    int batchDelete(List<Integer> ids);

}
